import React from 'react';
import { View, Text } from 'react-native';

const ContextMenu = ({ options, onOptionSelect }) => {
  return (
    <View style={styles.menu}>
      {options.map((option, index) => (
        <Text 
          key={index} 
          onPress={() => onOptionSelect(option)}
          style={styles.option}
        >
          {option.label}
        </Text>
      ))}
    </View>
  );
};

export default ContextMenu;